﻿using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.game
{
    public class UserChapterInfoRet : Message
    {
        public static int TYPE = 12;
        public static int ID = 5;

        public int LocationIndex { get; set; }
        public int[] Cards { get; set; }
        public string CardType { get; set; }
        public int BetScore { get; set; }
        public int BetState  { get; set; }
        public int TotalScore { get; set; }
        public int SettlementScore { get; set; }
        public int VieForZhuangState { get; set; }
        public int DealState { get; set; }

        public void decode(Input _in)
        {
            LocationIndex = _in.readInt();
            Cards = _in.readIntArray();
            CardType = _in.readString();
            BetScore = _in.readInt();
            BetState = _in.readInt();
            TotalScore = _in.readInt();
            SettlementScore = _in.readInt();
            VieForZhuangState = _in.readInt();
            DealState = _in.readInt();
        }

        public void encode(Output _out)
        {
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "UserChapterInfoRet[LocationIndex=" + LocationIndex + "cards=" + Cards + "CradType =" + CardType +
                    "，BetScore=" + BetScore+"，BetState=" + BetState + "TotalScore=" + TotalScore + "settlementScore=" + SettlementScore +
                    "VieForZhuangState=" + VieForZhuangState+", DealState="+DealState+"] ";
        }
    }
}